'use strict';

const Controller = require('egg').Controller;

class SlideController extends Controller {
  async list() {
    const { ctx, app } = this;
        let data = await ctx.page('Slide', {}, {
            where: {
                status: 1
            }
        })
        data = JSON.parse(JSON.stringify(data))
        console.log(data)
        ctx.apiSuccess( data, 'ok', 200 );
  }
}

module.exports = SlideController;
